﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SwitchMiner
{
    public class MinerModel
    {
        private string _minerName;
        public String MinerName
        {
            get { return _minerName; }
            set { _minerName = value; }
        }
        
        private string _minerPath;
        public String MinerPath
        {
            get { return _minerPath; }
            set {
                if (File.Exists(value))
                {
                    _minerPath = value;
                }
                else
                {
                    _minerPath = "Path Not Found";
                }
            }
        }
        public MinerModel(string name, String minerPath)
        {
            MinerPath = minerPath;
            MinerName = name;
        }

        public override string ToString()
        {
            return MinerName;
        }

    }
}
